#pragma once

#include "IControl.h"

interface IMenuBar;
interface IToolBar;

interface IControlBars : public IInterface
{
	DEFINE_IID(IID_ControlBars)

	virtual IMenuBar* GetMenuBar() const = 0;

	virtual IToolBar* GetToolbox() const = 0;
	virtual IToolBar* AddToolbar(const String& name,int32 align) = 0;
	virtual IToolBar* FindToolbar(const String& name) = 0;

	/*!for inner usage*/
	virtual uint32 GetToolbars(ToolbarList& toolbars) const = 0;
	virtual bool ContainControl(uint32 id) const = 0;
	virtual IObject* FindControl(uint32 id) const = 0;
};
